package com.bjsxt.livegoods.banner.client.controller;


import com.bjsxt.livegoods.banner.client.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BannerClientController {
    @Autowired
    private BannerService bannerService;
    @GetMapping("/banner")
    @CrossOrigin
    public Map<String,Object> banner(){
    return bannerService.getBanners();
    }
}
